
function checkLogin_bak(status)
{
    if (status == 1) return;
    setTimeout(function() {
        $.getJSON("/admin/robots/checklogin", function(res) {
           if (res.status == 1) {
               window.location.reload();
           }
        });
    }, 2000);
}
var shows;
function checkLogin(status)
{
    window.setInterval(myFunctions, 1000 * 2);
}
function myFunctions() {
    $.getJSON("/admin/robots/checklogin", function(res) {
        if (res.status == 1) {
            //clearInterval(shows);
            alert('登陆成功');
            return 1;
        }
    });
}

function show(data) {
    console.log(data);
}


